package utility;

public class Position {

	private int xPost;
	private int yPost;
	private int x;
	private int y;

	public Position() {
		this.x = -1;
		this.y = -1;
		this.xPost = 0;
		this.yPost = 0;
	}

	public Position(Position mPo) {
		this.x = mPo.getX();
		this.y = mPo.getY();
		this.xPost = mPo.getxPost();
		this.yPost = mPo.getyPost();
	}

	public int getxPost() {
		return xPost;
	}

	public int getyPost() {
		return yPost;
	}

	public int getX() {
		return x;
	}

	public int getY() {
		return y;
	}

	public void setxPost(int xPost) {
		this.xPost = xPost;
	}

	public void setyPost(int yPost) {
		this.yPost = yPost;
	}

	public void setX(int x) {
		this.x = x;
	}

	public void setY(int y) {
		this.y = y;
	}

	public boolean compare(Position po) {
		return this.getX() == po.getX() && this.getxPost() == po.getxPost()
				&& this.getY() == po.getY() && this.getyPost() == po.getyPost();
	}

}
